package com.spark.lola.request;

import com.baomidou.mybatisplus.annotation.TableField;
import com.spark.lola.entity.pur.OrderProduct;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: DengYeJun
 * @Date: 2020/5/22 13:29
 */
@ApiModel(value="创建采购单", description="")
public class CreateOrderRequest {
    @ApiModelProperty(value = "业务员")
    private Long salesmanId;

    @ApiModelProperty(value = "供应商Id")
    private Long supplierId;

    @ApiModelProperty(value = "收款信息")
    private Long bankId;

    @ApiModelProperty(value = "纸厂")
    private Long destinationId;

    @ApiModelProperty(value = "货品明细")
    @TableField(exist = false)
    private List<OrderProduct> details=new ArrayList<>();

    public Long getSalesmanId() {
        return salesmanId;
    }

    public void setSalesmanId(Long salesmanId) {
        this.salesmanId = salesmanId;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getBankId() {
        return bankId;
    }

    public void setBankId(Long bankId) {
        this.bankId = bankId;
    }

    public Long getDestinationId() {
        return destinationId;
    }

    public void setDestinationId(Long destinationId) {
        this.destinationId = destinationId;
    }

    public List<OrderProduct> getDetails() {
        return details;
    }

    public void setDetails(List<OrderProduct> details) {
        this.details = details;
    }
}
